module full_adder(
    input A,
    input B,
    input CYI,
    output SUM,
    output CYO
);
    assign p = A^B;
    assign g = A&B;
    assign SUM = p^CYI;
    assign CYO = (p & CYI) | g;
        
endmodule
